package com.hualude.roadsign.repository;

import com.hualude.roadsign.dto.PushHistoryDto;
import com.hualude.roadsign.model.PushHistoryEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface PushHistoryRepository extends CrudRepository<PushHistoryEntity, Long> {

    /**
     * @Description: 查询推送
     * @Author: shao-yikun
     * @Date: 2017/10/23 下午9:23
     */
    List<PushHistoryDto> getPushHistoryByOrgIdAndActorId(Integer orgId,
                                                         String actorIds,
                                                         Integer mCount,
                                                         Integer mSize) throws Exception;


    List<PushHistoryDto> getFaultPushList(Integer orgId,
                                          Integer pushType,
                                          Integer mCount,
                                          Integer mSize) throws Exception;
}
